// ES module
import sum from './js/sum'

// commonjs 规范 
const minus = require('./js/minus')

// amd
require(['./js/muti'], function(muti) {
	console.log('muti(2, 4) = ', muti(2, 4))
})

console.log('sum(2, 4) = ', sum(2, 4))
console.log('minus(2, 4) = ', minus(2, 4))

// webpack --mode production app.js --output-filename bundle.js --output-path dist

// 4.0以后需要写 --output-filename(-o)和--output-path
// webpack --mode production app.js -o bundle.js
